package com.test.base.dao;
import com.test.base.entity.NideshopProduct;
import java.util.List;
import com.test.base.utils.Assist;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface NideshopProductDao{
	/**
	 * 获得NideshopProduct数据的总行数,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    long getNideshopProductRowCount(Assist assist);
	/**
	 * 获得NideshopProduct数据集合,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    List<NideshopProduct> selectNideshopProduct(Assist assist);
	/**
	 * 获得一个NideshopProduct对象,以参数NideshopProduct对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    NideshopProduct selectNideshopProductByObj(NideshopProduct obj);
	/**
	 * 通过NideshopProduct的id获得NideshopProduct对象
	 * @param id
	 * @return
	 */
    NideshopProduct selectNideshopProductById(Object id);
	/**
	 * 插入NideshopProduct到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertNideshopProduct(NideshopProduct value);
	/**
	 * 插入NideshopProduct中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyNideshopProduct(NideshopProduct value);
	/**
	 * 通过NideshopProduct的id删除NideshopProduct
	 * @param id
	 * @return
	 */
    int deleteNideshopProductById(Object id);
	/**
	 * 通过辅助工具Assist的条件删除NideshopProduct
	 * @param assist
	 * @return
	 */
    int deleteNideshopProduct(Assist assist);
	/**
	 * 通过NideshopProduct的id更新NideshopProduct中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateNideshopProductById(NideshopProduct enti);
 	/**
	 * 通过辅助工具Assist的条件更新NideshopProduct中的数据,包括null值
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNideshopProduct(@Param("enti") NideshopProduct value, @Param("assist") Assist assist);
	/**
	 * 通过NideshopProduct的id更新NideshopProduct中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyNideshopProductById(NideshopProduct enti);
 	/**
	 * 通过辅助工具Assist的条件更新NideshopProduct中属性不为null的数据
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNonEmptyNideshopProduct(@Param("enti") NideshopProduct value, @Param("assist") Assist assist);
}